﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace MinConsole.Controller
{
    class Program
    {

        #region FieldsAndProps

        private MinConsole.De.Model.Program _Model;
        public MinConsole.De.Model.Program Model
        {
            get {
                if (_Model == null)
                    _Model =  new MinConsole.De.Model.Program(); 
                
                return _Model; 
            }
            set { _Model = value; } 
        } //eof prop

        #endregion FieldsAndProps 

        #region Constructor

        public Program()
        {
            MinConsole.IniParser.IniData  objIniData = this.ProvideParsedData();
            this.Model.ObjIniData = objIniData; 
        } //eof const

        #endregion Constructor

        #region Methods 
        
        /// <summary>
        /// Provides the parsed data object 
        /// </summary>
        /// <returns></returns>
        public MinConsole.IniParser.IniData ProvideParsedData()
        {                               
                string strIniFile = MinConsole.Gaf.IO.FileUtility.CreateProcessDefaultIniFile();
                MinConsole.IniParser.FileIniDataParser parser = new MinConsole.IniParser.FileIniDataParser();
                MinConsole.IniParser.IniData parsedData = parser.LoadFile(strIniFile);
                
                return parsedData; 
        } //eof method 


        


        #endregion Methods 
        
    } //eof class 
} //eof namespace 
